import request from '@/utils/request'

export default {
  //分页查询评论
  getPageList(page, limit, courseId) {
    return request({
      url: `/taxation/comment/getCourseCommentPageList/${courseId}/${page}/${limit}`,
      method: 'post',
    })
  },
  // 添加评论
  addCourseComment(comment) {
    return request({
      url: `/taxation/comment/addCourseComment`,
      method: 'post',
      data: comment
    })
  },
  // 删除评论
  deleteComment(id) {
    return request({
      url: `/taxation/comment/deleteComment/${id}`,
      method: 'delete',
    })
  },
  // 根据评论id查询memberid
  getMemberId() {
    return request({
      url: `/taxation/comment/getMemberId`,
      method: 'get'
    })
  }

}